package com.learn._02notice.mapper;

import com.learn._02notice.pojo.dto.NoticeListQuery;
import com.learn._02notice.pojo.entity.Notice;
import com.learn._02notice.pojo.vo.NoticeDetailInfoVO;
import com.learn._02notice.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
//这个可以把这个注解放在配置类上
//@Mapper
public interface NoticeMapper {
    int insertNotice(Notice notice);

    List<NoticeListVO> selectNotice(@Param("title")String title,@Param("type") Integer type);

    NoticeDetailInfoVO selectNoticeDetailInfo(Long id);

    int deleteNotice(Long id);

    int updateNotice(Notice notice);
}
